#ifndef _IINMAP_H_
#define _IINMAP_H_


#define VENDOR_FIXED_ID (1 << 31)
#define VENDOR_ID_EMPTY 0
#define VENDOR_SN_ID 1 /* serialno */
#define VENDOR_WIFI_MAC_ID 2 /* wifi mac */
#define VENDOR_LAN_MAC_ID 3 /* lan mac */
#define VENDOR_BLUETOOTH_ID 4 /* bluetooth mac */
#define VENDOR_HDCP14_HDMI_ID 5 /* HDCP 1.4 HDMI */
#define VENDOR_HDCP14_DP_ID 6 /* HDCP 1.4 DP */
#define VENDOR_HDCP2X_WFD_ID 7 /* HDCP 2.x WFD */
#define VENDOR_WIDEVINE_ID 8
#define VENDOR_PLAYREADY_CERT_ID 9
#define VENDOR_ATTENTION_KEY 10
#define VENDOR_PLAYREADY_ROOT_SL3000_ID 11
#define VENDOR_PLAYREADY_ROOT_SL2000_ID 12
#define VENDOR_HDCP14_HDMIRX_ID 13 /* HDCP 1.4 HDMIRX */
#define VENDOR_IMEI_ID 15 /* imei */
#define VENDOR_CUST1_ID 16
#define VENDOR_CUST2_ID 17
#define HDCP_2X_RX_ID 19
#define HDCP_2X_HDMIRX_ID 20
#define VENDOR_TACIPHER 120

#define VENDOR_MAX_LEN 2048


#define ITEM_START 0
#define ITEM_SN 0
#define ITEM_WIFI 1
#define ITEM_LAN 2
#define ITEM_BT 3
#define ITEM_IMEI 4
#define ITEM_FIX 5
#define ITEM_CUST1 5
#define ITEM_CUST2 6

#define IMEI_LEN 15
#define MAC_LEN 6

/*hdcp grp */
#define ITEM_HDCP_START 7
#define ITEM_HDCP14HDMI 7
#define ITEM_HDCP14_HDMITX 7
#define ITEM_HDCP14DP 8
#define ITEM_HDCP2XWFD 9
#define ITEM_HDCP2X_HDMIRX 10
#define ITEM_HDCP14_HDMIRX 11
#define ITEM_HDCP_END 12
#define ITEM_WIDEVINE 12
#define ITEM_ATTENTION 13
#define ITEM_PLAYREADY_CERT 14
#define ITEM_PLAYREADY_SL2000 15
#define ITEM_PLAYREADY_SL3000 16
#define ITEM_TACIPHER 17
#define ITEM_AVB_ATTR 18
#define ITEM_AVB_ATTR_CER 19
#define ITEM_AVB_LOCK 20
#define ITEM_ID_ATTE 21
#define ITEM_COUNT 22
#define ITEM_END 23
#define MAX_LAN_COUNT 223

typedef struct _INDEX_ID_NAME_MAP_ {
    int index;
    int vendorid;
    const char *name;
} IINMAP;

IINMAP *GetIINMAP(int index, int vendorid, const char *name);
void print_iinmap_info();
#endif